﻿@using FwProject.PrePaymentInfo.Dto
@model PaymentInfoDto
@{
    Layout = null;
}

    <link href="/css/print.css" rel="stylesheet" />
    <style type="text/css">
        body {
            background-color: #F0F0F0;
        }
        .input-group[class*=col-] {
            padding: 0 15px;
        }

        .Noprint {
            display: none;
        }

        .PageNext {
            page-break-after: always;
        }

        * {
            word-wrap: break-word;
            word-break: break-all;
        }
        .allNewProduct {
            background-color: #ffffff;
            margin: 0px 0px;
            margin-bottom: 5px;
            width: 75mm !important;
            border-collapse: separate;
            empty-cells: show;
            border-spacing: 0px;
        }
            .allNewProduct td {
                text-align: left;
                font-weight: bold;
                font-size: 18px;
            }

    </style>

<object id="factory" viewastext style="display:none" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
        codebase="/scripts/smsx.cab#Version=6,2,433,70"></object>
<!-----------------------------【smsx.cab】打印--------------------------->
<form name="printformName" id="printformName" action="" method="post">
    <div align="center">

        <!-----------------------------【smsx.cab】打印--------------------------->

        <p>
            <input type="button" class="notprint" name="Submit" value="打印" onclick="pagePrint();" />
        </p>
        <!-----------------------------【smsx.cab】打印--------------------------->
        <div id="printObj" style="width:80mm;padding-bottom:50px" align="left">
            <span id='valueSpanID'>&nbsp;</span>
     
                <table class='allNewProduct' style='width:58mm'>
                    <tr><td colspan='2'>缴款凭证</td></tr>
                    <tr><td colspan='2' style='border-bottom:1px dashed black'>日期:&nbsp;@Model.CreationTime</td></tr>
                    <tr><td colspan='2'></td></tr>
                    @foreach (var item in Model.ReceiptDetailsDto)
                    {
                        <tr><td width='50%' nowrap>餐厅</td><td width='50%'>金额</td></tr>
                        <tr><td width='50%' nowrap>@item.RestaurantName</td><td width='50%'>@item.TaskBackAmount</td></tr>
                    }
                    <tr><td colspan='2'></td></tr>
                    <tr><td colspan='2' style='border-top:1px dashed black'>合计:&nbsp;@Model.TotalPrice</td></tr>
                    <tr><td colspan='2'>凭证单号:&nbsp;@Model.PaymentNumber</td></tr>
                    <tr><td colspan='2'>经办人:&nbsp;@Model.AgentPeoper</td></tr>
                    <tr><td colspan='2'>签收人:&nbsp;</td></tr>
                </table>
            
        </div>
    </div>
</form>


    <script src="~/js/Print.js"></script>
    <script>
        var loadInfo = function () {
            //$("#printObj").css({ "width": "270mm" });
            p_init(printInit);
        };
        $(function () {
            loadInfo();
        });

        function pageSet() {
            try {
                p_pagesetup();
            } catch (e) {
                wb.execwb(8, 1);
            }
        }
        function pageView() {
            try {
                p_preview();
            } catch (e) {
                wb.execwb(7, 1);
            }
        }
        function pagePrint() {
            try {
                p_print();
            } catch (e) {
                wb.execwb(6, 6);
            }
        }

      
    </script>


